package com.orchard.orchardfarmmanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Data
@TableName("user")

public class User {
  @Id
  @TableId(type = IdType.AUTO)
  private Integer userId;

  @Column(unique = true, nullable = false)
  private String username;

  @Column(nullable = false)
  private String password;

  private String avatarUrl;
  private String email;
  private String phone;
  private LocalDateTime registrationDate;
  private LocalDateTime lastLoginDate;
  private Integer isActive;
  private LocalDateTime createdAt;
  private LocalDateTime updatedAt;


}